package io.lvdaxian.verify.flow.entity;

import javax.annotation.PostConstruct;

/**
 * @author lihh
 * @description 构建 用户bean
 */
public class User {
  
  private Animal animal;
  
  public User() {
    System.out.println("1. 执行构造方法");
  }
  
  @PostConstruct
  public void initMethod() {
    System.out.println("3. 执行初期化方法");
  }
  
  public void setAnimal(Animal animal) {
    this.animal = animal;
  }
}
